home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / enigma / earcd / emula / arosdv19.lha / AROS / dos / putstr.c < prev    next >
C/C++ Source or Header  |  1996-10-24  |  1KB  |  72 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: putstr.c,v 1.4 1996/10/24 15:50:35 aros Exp $
  4.     $Log: putstr.c,v $
  5.     Revision 1.4  1996/10/24 15:50:35  aros
  6.     Use the official AROS macros over the __AROS versions.
  7.  
  8.     Revision 1.3  1996/08/13 13:52:50  digulla
  9.     Replaced <dos/dosextens.h> by "dos_intern.h" or added "dos_intern.h"
  10.     Replaced AROS_LA by AROS_LHA
  11.  
  12.     Revision 1.2  1996/08/01 17:40:56  digulla
  13.     Added standard header for all files
  14.  
  15.     Desc:
  16.     Lang: english
  17. */
  18. #include <clib/exec_protos.h>
  19. #include <dos/dosextens.h>
  20. #include "dos_intern.h"
  21.  
  22. /*****************************************************************************
  23.  
  24.     NAME */
  25.     #include <clib/dos_protos.h>
  26.  
  27.     AROS_LH1(LONG, PutStr,
  28.  
  29. /*  SYNOPSIS */
  30.     AROS_LHA(STRPTR, string, D1),
  31.  
  32. /*  LOCATION */
  33.  
  34.     struct DosLibrary *, DOSBase, 158, Dos)
  35.  
  36. /*  FUNCTION
  37.  
  38.     INPUTS
  39.  
  40.     RESULT
  41.  
  42.     NOTES
  43.  
  44.     EXAMPLE
  45.  
  46.     BUGS
  47.  
  48.     SEE ALSO
  49.     FGetC(), IoErr()
  50.  
  51.     INTERNALS
  52.  
  53.     HISTORY
  54.     29-10-95    digulla automatically created from
  55.                 dos_lib.fd and clib/dos_protos.h
  56.  
  57. *****************************************************************************/
  58. {
  59.     AROS_LIBFUNC_INIT
  60.     AROS_LIBBASE_EXT_DECL(struct DosLibrary *,DOSBase)
  61.  
  62.     BPTR file=((struct Process *)FindTask(NULL))->pr_COS;
  63.     
  64.     while(*string)
  65.         if(FPutC(file,*string++)<0)
  66.             return EOF;
  67.             
  68.     return 0;
  69.     
  70.     AROS_LIBFUNC_EXIT
  71. } /* PutStr */
  72.